#pragma once
#include "basic.h"

enum
{
	PStar=0,
	PSnow,
	PBigSnow,
	PExplision,
	PUpsidedown,
	PMordernArt
};

class  ParticleEffect:public CCLayerColor
{
public:
	ParticleEffect();
	~ParticleEffect();
protected:
	CCParticleSystem*	m_emitter;
	CCPoint Position;
	CCSize size;
	int particleType;
public:
	void setParticleType(int type);
	void SetPos(CCPoint pos);
	virtual void onEnter(void);
public:
	void particleStar();
	void particleSnow();
	void EffectBigFlower();
 	void EffectFile(string filename);
	void EffectSnow();
	void EffectYanhua();
	void Expliosion();
	void MordernArt();
};